#include "command.h"


void parse_commands(settings * set_struct, const int argc, const char ** argv) {
	int i = 1;
	for(;i < argc - 1; ++i) {
		char curchar = (*argv[i]);
		if(curchar = '-') {
			
		}

		switch(curchar) {
			case FLAG_TYPE_USER_AGENT:
				set_struct->report_types = set_struct->report_types | REPORT_TYPE_USER_AGENT;
			break;
			case FLAG_TYPE_HOST:
				set_struct->report_types = set_struct->report_types | REPORT_TYPE_HOST;
			break;
			case FLAG_TYPE_URI:
				set_struct->report_types = set_struct->report_types | REPORT_TYPE_URI;
			break;
			case FLAG_FORMAT_HUMAN:
				set_struct->output_format = set_struct->output_format | OUTPUT_FORMAT_HUMAN;
			break;
			case FLAG_FORMAT_GREP:
				set_struct->output_format = set_struct->output_format | OUTPUT_FORMAT_GREP;
			break;
			case FLAG_FORMAT_XML:
				set_struct->output_format = set_struct->output_format | OUTPUT_FORMAT_XML;
			break;
			case FLAG_FORMAT_CSV:
				set_struct->output_format = set_struct->output_format | OUTPUT_FORMAT_CSV;
			break;
		}

	}
}
